/*
 * This file is part of ksPlatform
 * 
 * Copyright (c) 2014-2015
 * 
 * This file is dual-licensed under the AGPLv3 (http://www.gnu.org/licenses/agpl-3.0.html) 
 * 
 * If you are unsure which license is appropriate for your use, please contact the sales department
 * at 97041437@qq.com.
 */
package cn.com.ksplatform.base.dao;

import java.util.List;

import org.springframework.orm.hibernate4.HibernateOperations;

import cn.com.ksplatform.base.page.PageInfoModel;

@SuppressWarnings("rawtypes") 
public interface IBaseHibernateDAO extends HibernateOperations{

	public PageInfoModel queryPage(final String hql, final PageInfoModel queryResult,final List values);
	public PageInfoModel queryPage(final String hql, final PageInfoModel pim);
	public Object findAll(final String hql);
	
	public List findAll(final String hql, final List values);
	public Object uniqueResult(Class clazz,String propertyName, Object value);
	
	
	public List executeQuery(String hql,Object... params);
	public int executeUpdate(String hql,Object... params);
}
